<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="loading.css" />
    <title>loading</title>
    <style>
      * {
        padding: 0;
        margin: 0;
      }
      body {
        background-color: blueviolet;
      }
    </style>
  </head>
  <body>
    <div name="loading" style="height:200px"></div>
    <div name="loading1" style="height:200px"></div>
    <div name="loading2" style="height:200px"></div>
    <script src="./loading.js"></script>
    <script>
      var _loading = new loading.init();
      var _loading1 = new loading.init();
      _loading.open({
        name: "loading1"
      });
      console.log(_loading.index);

      _loading.open({
        name: "loading",
        wBackgroundColor: "red",
        backgroundColor: "#ffffff",
        wWidth: 50,
        wHeight: 50,
        loadingColor: "#ffffff",
        loadingText: "loading",
        loadingTop: 5,
      });
      console.log(_loading.index);
    //   _loading1.open({
    //     type:"VL",
    //     wWidth: 100,
    //     wHeight: 100,
    //     width: 3,
    //     height: 10,
    //   });
      _loading1.open({
        name: "loading2",
        type:"VL",
        wWidth: 100,
        wHeight: 100,
        width: 3,
        height: 10,
      });
    </script>
  </body>
</html>
